Skip to content

fix: preserve loose-list sidebar links when collapsed - #2787

Open
sy-records wants to merge 1 commit into
developfrom
fix/sidebar
Open

fix: preserve loose-list sidebar links when collapsed#2787
sy-records wants to merge 1 commit into
developfrom
fix/sidebar

Conversation

@sy-records

@sy-records sy-records commented Aug 14, 2026

Copy link
Copy Markdown
Member

Summary

If you click “Quick Start” and then click “Quick Start” again, it will disappear.

- [Quick start](quickstart.md)
- [Adding pages](adding-pages.md)
- [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

But that's normal.

* [Quick start](quickstart.md)
* [Adding pages](adding-pages.md)
* [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

Related issue, if any:

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docsify-preview Ready Ready Preview Aug 14, 2026 9:50am

@paulhibbitts paulhibbitts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is another great catch @sy-records ! I created a sandbox using the PR Preview Build and your provided sidebar example:

- [Quick start](quickstart.md)
- [Adding pages](adding-pages.md)
- [Cover page](cover.md)

- Getting started

  - [Custom navbar](custom-navbar.md)

https://codesandbox.io/p/devbox/docsify-v5-collapsible-root-sidebar-groups-forked-82n2w8?workspaceId=ws_C7CBq2TzamwfU438Zxccyc

With the current docsify.js.org build used in the sandbox, sure enough QuickStart disappeared after I opened and closed it, as shown here:

Image

However, as the sandbox confirmed your fix keeps QuickStart if it is opened and then closed. 👍🏼

2026-08-14_06-58-34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants